package drawing 
{
	import flash.display.Graphics;
	
	/**
	 * ...
	 * @author Dmitriy Gaiduk
	 */
	/**
	 * Interface for setup brush type in flash.display.Graphics
	 * Work flow: 1. Befor draw shape on graphics call beginFill(params) function
	 * 2. After draw call  endFill(params) function
	 */
	public interface IPalette 
	{
		/**
		 * Setup brash type for surface
		 * @param	surface
		 * @param	brushType
		 * @param	surfaceWidth for scaling bitmap relative surface size
		 * @param	surfaceHeight for scaling bitmap relative surface size
		 * @return	true - if brush enabled
		 */
		function beginFill(surface:Graphics, brushType:String, 
							surfaceWidth:Number, surfaceHeight:Number,
									reverseByX:Boolean = false,
									reverseByY:Boolean = false):Boolean
		
		/**
		 * End for fill
		 * @param	surface
		 */
		function endFill(surface:Graphics):void
		
		/**
		 * 
		 * @param	surface
		 * @return
		 */
		function lineStyle(surface:Graphics):Boolean
		
	}
	
}